import java.math.*;

import java.util.Scanner;

public class Seven{

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);	
		BigInteger a=new BigInteger("0");
		while(scan.hasNext()){
			String s=scan.nextLine();
			if(s.equalsIgnoreCase("e"))
				break;
			BigInteger b=new BigInteger(s);
			a=a.add(b);
		}
		System.out.println(a);
		scan.close();
	}
}